This directory contains the replication materials for "Between Withdrawal and Engagement: Disentangling the Effects of Covid-19 on Turnout" at the Journal of Politics.

I recommend viewing the repository using the "Tree" view, rather than the "Table" view.

The individual-level death and voter file records are covered under contractual data-sharing and / or IRB agreements. As such, the full data for replication are not provided. Anonymized individual-level records are included such that the figures and tables can be replicated.

I do, however, provide the code that processes the entire project from the raw death and voter files all the way through to the final results.

The scripts should be run in order, and they do the following (stars indicate that a script cannot be run, as it uses protected data):

01_initialize.R: Load the libraries, create some functions used in later scripts.

#### The directory structure for Washington, Minnesota, and North Carolina are identical. I only describe the scripts for Washington, but they apply identically to their mirror scripts

02_wa/01_clean_vf.R*: Read in voter file data from L2. Clean addresses to match USPS dictionary. Runs BISG at the block level. Merge in voter history. Merge in block group-level characteristics from the ACS.

02_wa/02_clean_death_data.R*: Read in and clean death records, including addresses to match USPS dictionary. Merge with voter file records, both exactly and using fuzzy matching.

02_wa/03_eb.R: Perform entropy balancing. Run regressions. Create balance table.

02_wa/04_eb_robust.R: Perform entropy balancing using fuzzy-matched results. Run regressions using fuzzy-matched results.

05_combine/01_plot: create all plots in body of manuscript and SI

05_combine/02_regs: create all regression tables in body of manuscript and SI